﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace IronSuit.Crazy250API.LoginAPI
{
	public class CrazyException:Exception
	{
		public string ErrorCode;
		private  CrazyException(string ErrorCode,string ErrorMessage):base(ErrorMessage )
		{
			this.ErrorCode = ErrorCode;
		}
		/// <summary>
		/// 该Email已经注册
		/// </summary>
		public static CrazyException CE001SameEamil=new CrazyException("001","该Email已经注册！");
		/// <summary>
		/// 该昵称已经注册
		/// </summary>
		public static CrazyException CE002SameNickName = new CrazyException("002", "该昵称已经注册！");
		/// <summary>
		/// 找不到该邮箱
		/// </summary>
		public static CrazyException CE003EMailNotExist = new CrazyException("003", "找不到该邮箱！");
		/// <summary>
		/// 密码错误
		/// </summary>
		public static CrazyException CE004WorongPassword = new CrazyException("004", "密码错误！");
		/// <summary>
		/// 用户信息获取错误
		/// </summary>
		public static CrazyException CE005UserError = new CrazyException("005", "用户信息获取错误！");
		/// <summary>
		/// 参数错误
		/// </summary>
		public static CrazyException CE006ParameterError = new CrazyException("006", "参数错误！");
	}
}
